package iii.myangeloldman;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Vibrator;
import android.widget.Toast;

public class MyCall1 extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent arg1) {
		//Toast.makeText(context, "MyCall1_onReceive" ,Toast.LENGTH_LONG).show();
		// Vibrate the mobile phone
		Vibrator vibrator = (Vibrator) context
				.getSystemService(Context.VIBRATOR_SERVICE);
		vibrator.vibrate(1000);
		Intent i=new Intent(context,EatmedicneActivity.class);
		i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		context.startActivity(i);
	}
}
